function Box(parent, options) {
	options = options || {};
	this.width = options.width || 20;
	this.height = options.height || 20;
	this.backgroundColor = options.backgroundColor || 'red';
	this.x = options.x || 0;
	this.y = options.y || 0;
	this.parent = parent;

	this.div = document.createElement('div');
	parent.appendChild(this.div);

	this.init();
}
Box.prototype.init = function () {
	var div = this.div;
	div.style.width = this.width + 'px';
	div.style.height = this.height + 'px';
	div.style.backgroundColor = this.backgroundColor;
	div.style.left = this.x + 'px';
	div.style.top = this.y + 'px';
	div.style.position = 'absolute';
}
Box.prototype.getRandom = function (min, max) {
	this.x = Tools.random(0, this.parent.offsetWidth - this.width);
	this.y = Tools.random(0, this.parent.offsetHeight - this.height);
	this.div.style.left = this.x + 'px';
	this.div.style.top = this.y + 'px';
}